<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
    <div id="app">
        <button v-on:click="num--">减少1分</button>
        <button v-on:click="num++">增加1分</button>
        <p>期末考试总成绩是:{{ num }}</p>
    </div>

<!--引入vue文件-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
    const mv = Vue.createApp({
        data() {
            return {
                num: 360
            }
        }
    }).mount('#app');
</script>


</body>
</html>
